<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    var foo=function bar(){}    
    console.log (typeof bar)//undefined
    console.log(typeof foo);//function
    // 因为 bar 这个变量没有定义。var foo = function bar(){} 这行代码，是函数表达式
    </script>
</body>
</html>